﻿@model VehicleManagement.Models.Message

@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <title>Edit</title>
</head>
<body>
    <script src="@Url.Content("~/Scripts/jquery-1.5.1.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
    
    @using (Html.BeginForm()) {
        @Html.ValidationSummary(true)
        <fieldset>
            <legend>Message</legend>
    
            @Html.HiddenFor(model => model.MessageID)
    
            <div class="editor-label">
                @Html.LabelFor(model => model.ReceiverID)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.ReceiverID)
                @Html.ValidationMessageFor(model => model.ReceiverID)
            </div>
    
            <div class="editor-label">
                @Html.LabelFor(model => model.ReceiverRole)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.ReceiverRole)
                @Html.ValidationMessageFor(model => model.ReceiverRole)
            </div>
    
            <div class="editor-label">
                @Html.LabelFor(model => model.ReceiverName)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.ReceiverName)
                @Html.ValidationMessageFor(model => model.ReceiverName)
            </div>
    
            <div class="editor-label">
                @Html.LabelFor(model => model.SenderID)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.SenderID)
                @Html.ValidationMessageFor(model => model.SenderID)
            </div>
    
            <div class="editor-label">
                @Html.LabelFor(model => model.SenderRole)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.SenderRole)
                @Html.ValidationMessageFor(model => model.SenderRole)
            </div>
    
            <div class="editor-label">
                @Html.LabelFor(model => model.SenderName)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.SenderName)
                @Html.ValidationMessageFor(model => model.SenderName)
            </div>
    
            <div class="editor-label">
                @Html.LabelFor(model => model.SendTime)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.SendTime)
                @Html.ValidationMessageFor(model => model.SendTime)
            </div>
    
            <div class="editor-label">
                @Html.LabelFor(model => model.MessageText)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.MessageText)
                @Html.ValidationMessageFor(model => model.MessageText)
            </div>
    
            <div class="editor-label">
                @Html.LabelFor(model => model.IsChecked)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.IsChecked)
                @Html.ValidationMessageFor(model => model.IsChecked)
            </div>
    
            <div class="editor-label">
                @Html.LabelFor(model => model.Remark)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.Remark)
                @Html.ValidationMessageFor(model => model.Remark)
            </div>
    
            <p>
                <input type="submit" value="Save" />
            </p>
        </fieldset>
    }
    
    <div>
        @Html.ActionLink("Back to List", "Index")
    </div>
</body>
</html>
